<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<!--新增项目弹出modal-->
<div th:fragment="project_add_modal" class="modal fade" id="project_add_modal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel"
     aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">新增项目</h4>
            </div>
            <div class="modal-body">
                <form id="project_add_form" class="form-horizontal">
                    <div id="alertMessage_add" class="alert alert-warning alert-dismissible fade in" role="alert"
                         style="display: none">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                                aria-hidden="true">×</span>
                        </button>
                        <strong>提示</strong> 输入信息错误，请检查！
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">项目名称</label>
                        <div class="col-sm-12">
                            <input name="projectName" type="text" class="form-control" id="projectName"
                                   placeholder="name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">项目描述</label>
                        <div class="col-sm-12">
                            <input name="description" type="text" class="form-control" id="description"
                                   placeholder="description">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-10">
                            <label>
                                <select class="form-control" name="status">
                                    <option>筹备中</option>
                                    <option>开发中</option>
                                    <option>测试中</option>
                                    <option>已完成</option>
                                    <option>已废弃</option>
                                </select>
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="addProjectBtn" type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>

<!--修改项目弹出modal-->
<div th:fragment="project_update_modal" class="modal fade" id="project_update_modal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel_u"
     aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel_u">修改项目信息</h4>
            </div>
            <div class="modal-body">
                <form id="project_update_form" class="form-horizontal">
                    <div id="alertMessage_update" class="alert alert-warning alert-dismissible fade in" role="alert"
                         style="display: none">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                                aria-hidden="true">×</span>
                        </button>
                        <strong>提示</strong> 输入信息错误，请检查！
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">项目编号</label>
                        <div class="col-sm-12">
                            <input id="projectId_u" name="projectId" type="text" class="form-control"
                                   placeholder="project number" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">项目名称</label>
                        <div class="col-sm-12">
                            <input id="projectName_u" name="projectName" type="text" class="form-control"
                                   placeholder="name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">项目描述</label>
                        <div class="col-sm-12">
                            <input id="description_u" name="description" type="text" class="form-control"
                                   placeholder="description">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">创建人</label>
                        <div class="col-sm-12">
                            <input id="creator_u" name="creatorName" type="text" class="form-control"
                                   placeholder="creator" readonly>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-10">
                            <label>
                                <select id="statusSelect" class="form-control" name="status">
                                    <option>筹备中</option>
                                    <option>开发中</option>
                                    <option>测试中</option>
                                    <option>已完成</option>
                                    <option>已废弃</option>
                                </select>
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="updateProjectBtn" type="button" class="btn btn-primary">更新</button>
            </div>
        </div>
    </div>
</div>

</html>